export function TypeFormate(row,index) {
    if (row.orderType == 1) {
      return "视频";
    } else if(row.orderType == 2){
      return "电子书";
    }
}
export function GradeFormate(row,index) {
    if (row.gradeId == 5) {
      return "高一";
    } else if(row.gradeId == 6) {
      return "高二";
    } else if(row.gradeId == 7) {
      return "高三";
    } else {
      return "";
    }
}
export function OrderStatusFormate(row,index) {
    if (row.orderStatus == 1) {
        return "未支付";
      } else if(row.orderStatus == 2){
        return "已支付";
      }else if(row.orderStatus == 3){
        return "已取消";
    }
}
export function IntegralFormate(row,index) {
  if (row.orderStatus == 0) {
      return "否";
    } else if(row.orderStatus == 1){
      return "是";
    }
}
export function BookStatusFormate(row,index) {
  if (row.bookStatus == 0) {
      return "未审核";
    } else if(row.bookStatus == 1){
      return "审核通过";
    }else if(row.bookStatus == 2){
      return "审核不通过";
  }
}